//
//  BPScreenShotManager.h
//  BPScreenManager_Example
//
//  Created by SiYugui on 2020/4/30.
//  Copyright © 2020年 xuhongji. All rights reserved.
//

#import <Foundation/Foundation.h>

@class BPScreenShotManager;

@protocol BPScreenShotDelegate<NSObject>

@optional

/**
 屏幕截屏触发该代理方法

 @param manager manage
 @param image screenimage
 */
- (void)screenShot:(BPScreenShotManager *)manager didShotWithScreenImage:(UIImage*)image;
@end

@interface BPScreenShotManager : NSObject
+ (instancetype)shareInstance;

/**
 开启截屏通知

 @param delegate 代理对象
 */
- (void)addShotNotificationWithDelegate:(id)delegate;

/**
 关闭截屏通知
 */
- (void)removeShotNotification;

@property(nonatomic, assign) id<BPScreenShotDelegate> delegate;
/// 最近一张屏幕截图
@property(nonatomic, strong) UIImage *lastShotImage;
/// 是否缓存到数据库 默认为 YES
@property(nonatomic, assign) BOOL cache;
@end
